home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / include / pidgin / gtksession.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-05-04  |  1.9 KB  |  54 lines

  1. /**
  2.  * @file gtksession.h X Windows session management API
  3.  * @ingroup pidgin
  4.  *
  5.  * pidgin
  6.  *
  7.  * Pidgin is the legal property of its developers, whose names are too numerous
  8.  * to list here.  Please refer to the COPYRIGHT file distributed with this
  9.  * source distribution.
  10.  *
  11.  * This program is free software; you can redistribute it and/or modify
  12.  * it under the terms of the GNU General Public License as published by
  13.  * the Free Software Foundation; either version 2 of the License, or
  14.  * (at your option) any later version.
  15.  *
  16.  * This program is distributed in the hope that it will be useful,
  17.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19.  * GNU General Public License for more details.
  20.  *
  21.  * You should have received a copy of the GNU General Public License
  22.  * along with this program; if not, write to the Free Software
  23.  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  24.  */
  25. #ifndef _PIDGINSESSION_H_
  26. #define _PIDGINSESSION_H_
  27.  
  28. /**************************************************************************/
  29. /** @name X Windows session subsystem                                     */
  30. /**************************************************************************/
  31. /*@{*/
  32.  
  33. /**
  34.  * Register this instance of Pidgin with the user's current session
  35.  * manager.
  36.  *
  37.  * @param argv0       The first argument passed into the program.  This
  38.  *                    will be the name of the executable, e.g. 'purple'
  39.  * @param previous_id An optional session ID to use.  This can be NULL.
  40.  * @param config_dir  The path to the configuration directory used by
  41.  *                    this instance of this program, e.g. '/home/user/.purple'
  42.  */
  43. void pidgin_session_init(gchar *argv0, gchar *previous_id, gchar *config_dir);
  44.  
  45. /**
  46.  * Unregister this instance of Pidgin with the user's current session
  47.  * manager.
  48.  */
  49. void pidgin_session_end(void);
  50.  
  51. /*@}*/
  52.  
  53. #endif /* _PIDGINSESSION_H_ */
  54.